package com.estronger.shopmanage.bean.batch;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * author : DC-DingYG
 * e-mail : dingyg012655@126.com
 * time : 2020/09/16
 * desc : *
 */
public class InstallPGListData implements Serializable {
    public String dlvid;//送货id
    public String cstname;//客户名称
    public String cstbuildname;//安装楼盘名称
    public String address;//客户住址
    public String istassaddress;//安装地址
    public String pidate;//预计安装时间
    public String cstmobile;//客户电话
    public String remark;//备注
    public String buildname;//楼盘名称
    public String dlvno;//送货单号


    public ArrayList<BatchPgGoodsItem> istitem;//商品

    public String getDlvid() {
        return dlvid == null ? "" : dlvid;
    }

    public String getCstname() {
        return cstname == null ? "" : cstname;
    }

    public String getCstbuildname() {
        if (cstbuildname == null || cstbuildname.equals("")){
            cstbuildname = getBuildname();
        }
        return cstbuildname;
    }

    public String getAddress() {
        if(address == null || address.equals("")){
            address = getIstassaddress();
        }
        return address == null ? "" : address;
    }

    public String getPidate() {
        return pidate == null ? "" : pidate;
    }

    public String getCstmobile() {
        return cstmobile == null ? "" : cstmobile;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setDlvid(String dlvid) {
        this.dlvid = dlvid;
    }

    public void setCstname(String cstname) {
        this.cstname = cstname;
    }

    public void setCstbuildname(String cstbuildname) {
        this.cstbuildname = cstbuildname;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIstassaddress() {
        return istassaddress==null?"":istassaddress;
    }

    public void setIstassaddress(String istassaddress) {
        this.istassaddress = istassaddress;
    }

    public void setPidate(String pidate) {
        this.pidate = pidate;
    }

    public void setCstmobile(String cstmobile) {
        this.cstmobile = cstmobile;
    }

    public String getRemark() {
        return remark == null ? "" : remark;
    }

    public String getBuildname() {
        return buildname == null ? "" : buildname;
    }

    public void setBuildname(String buildname) {
        this.buildname = buildname;
    }

    public String getDlvno() {
        return dlvno;
    }

    public void setDlvno(String dlvno) {
        this.dlvno = dlvno;
    }

    public ArrayList<BatchPgGoodsItem> getIstitem() {
        return istitem == null ? new ArrayList<BatchPgGoodsItem>() : istitem;
    }

    public void setIstitem(ArrayList<BatchPgGoodsItem> istitem) {
        this.istitem = istitem;
    }
}
